﻿@using com.hyrentals.webcommon.extensions
@using com.hyrentals.webportal.helpers
@using com.hyrentals.webportal.Models

@model MemberNavType

@{
    Layout = null;
    string inboxUrl = UrlGenerator.InboxUrl();
    string myRVsUrl = UrlGenerator.MyRVsUrl();
    string myTrips = UrlGenerator.MyTripsUrl();

    string inboxClass = Model == MemberNavType.Inbox ? "active" : string.Empty;
    string myRVsClass = (Model == MemberNavType.MyRVs | Model == MemberNavType.MyReservations) ? "active" : string.Empty;
    string myTripsClass = Model == MemberNavType.MyTrips ? "active" : string.Empty;
}
<ul class="member-nav">
    <li><a href="@inboxUrl" class="@inboxClass">Inbox</a></li>
    <li><a href="@myRVsUrl" class="@myRVsClass">My Listings</a></li>
    <li><a href="@myTrips" class="@myTripsClass">My Trips</a></li>
</ul>